/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package exercicio3;

/**
 *
 * @author linton
 */
public class Metodos
{

    public Metodos(){
    }

    public void contaWhile(int var1){
    int var2;
    var2 = 0;
     while(var2<var1)
     {
     var2 = var2+1;
         System.out.println(var2);
    
     }
    }

    public void contaDoWhile(int count){
        int aux=0;
        do{
            aux++;
            System.out.println(aux);
        }while(aux<count);
    }

    public void contaFor(int count){
        for (int i = 1; i <= count; i++) {
            System.out.println(i);
        }
    }
}
